<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Libusb++: LibUSB::Device Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Libusb++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A C++ libusb wrapper</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_lib_u_s_b_1_1_device.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_lib_u_s_b_1_1_device-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">LibUSB::Device Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Libusb device interface.  
 <a href="class_lib_u_s_b_1_1_device.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="device_8h_source.html">device.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeaa204a15758e97814f22daef0620bbe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeaa204a15758e97814f22daef0620bbe"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Device</b> (std::shared_ptr&lt; DeviceImpl &gt; pInit)</td></tr>
<tr class="memitem:a243abe3304f5b0df560c1c1d4996fc27"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a243abe3304f5b0df560c1c1d4996fc27"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Init</b> ()</td></tr>
<tr class="memitem:aab5f0f101c8ca3e7f3efd22906259a07"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab5f0f101c8ca3e7f3efd22906259a07"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#aab5f0f101c8ca3e7f3efd22906259a07">isOpen</a> ()</td></tr>
<tr class="memdesc:aab5f0f101c8ca3e7f3efd22906259a07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns TRUE if the device is open. <br/></td></tr>
<tr class="memitem:ad3d1cb1906cc40792d91f465d2fa8475"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad3d1cb1906cc40792d91f465d2fa8475"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#ad3d1cb1906cc40792d91f465d2fa8475">Open</a> ()</td></tr>
<tr class="memdesc:ad3d1cb1906cc40792d91f465d2fa8475"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens the device. <br/></td></tr>
<tr class="memitem:a59034f46f295c33e8508fc249d196f3a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59034f46f295c33e8508fc249d196f3a"></a>
uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a59034f46f295c33e8508fc249d196f3a">USBSpecification</a> ()</td></tr>
<tr class="memdesc:a59034f46f295c33e8508fc249d196f3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB specification release number. <br/></td></tr>
<tr class="memitem:a1e20bb4c9f2df68b470dcc6c9922a209"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e20bb4c9f2df68b470dcc6c9922a209"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a1e20bb4c9f2df68b470dcc6c9922a209">DeviceClass</a> ()</td></tr>
<tr class="memdesc:a1e20bb4c9f2df68b470dcc6c9922a209"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB-IF class code. <br/></td></tr>
<tr class="memitem:a86766778e062854e0a7d7b264793e9aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86766778e062854e0a7d7b264793e9aa"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a86766778e062854e0a7d7b264793e9aa">DeviceSubclass</a> ()</td></tr>
<tr class="memdesc:a86766778e062854e0a7d7b264793e9aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB-IF subclass code for the device, qualified by the bDeviceClass value. <br/></td></tr>
<tr class="memitem:ab3ae560d2ab9bf058d39eb266e752d98"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab3ae560d2ab9bf058d39eb266e752d98"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#ab3ae560d2ab9bf058d39eb266e752d98">DeviceProtocol</a> ()</td></tr>
<tr class="memdesc:ab3ae560d2ab9bf058d39eb266e752d98"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB-IF protocol code for the device, qualified by the bDeviceClass and bDeviceSubClass values. <br/></td></tr>
<tr class="memitem:a10d9993286eea8424f0d97bb5a0cbab6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10d9993286eea8424f0d97bb5a0cbab6"></a>
uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a10d9993286eea8424f0d97bb5a0cbab6">vendorID</a> ()</td></tr>
<tr class="memdesc:a10d9993286eea8424f0d97bb5a0cbab6"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB-IF vendor ID. <br/></td></tr>
<tr class="memitem:a5f3f9c76a5b6f10e70b71b63dcae575d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f3f9c76a5b6f10e70b71b63dcae575d"></a>
uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a5f3f9c76a5b6f10e70b71b63dcae575d">productID</a> ()</td></tr>
<tr class="memdesc:a5f3f9c76a5b6f10e70b71b63dcae575d"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB-IF product ID. <br/></td></tr>
<tr class="memitem:a2675fa27b241d017e20a20bd7d7a8af9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2675fa27b241d017e20a20bd7d7a8af9"></a>
std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a2675fa27b241d017e20a20bd7d7a8af9">ProductString</a> ()</td></tr>
<tr class="memdesc:a2675fa27b241d017e20a20bd7d7a8af9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string describing the product. <br/></td></tr>
<tr class="memitem:a8bdf8188d169b78b6042acdace38029d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bdf8188d169b78b6042acdace38029d"></a>
std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a8bdf8188d169b78b6042acdace38029d">ManufacturerString</a> ()</td></tr>
<tr class="memdesc:a8bdf8188d169b78b6042acdace38029d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string describing the manufacturer. <br/></td></tr>
<tr class="memitem:aab1bf4b42123fe6e83614e49a95c4fcf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab1bf4b42123fe6e83614e49a95c4fcf"></a>
std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#aab1bf4b42123fe6e83614e49a95c4fcf">SerialString</a> ()</td></tr>
<tr class="memdesc:aab1bf4b42123fe6e83614e49a95c4fcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the serial number string of the device. <br/></td></tr>
<tr class="memitem:a38ef4e0bb23c0db89297bbe3f1a7f019"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38ef4e0bb23c0db89297bbe3f1a7f019"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a38ef4e0bb23c0db89297bbe3f1a7f019">NumConfigurations</a> ()</td></tr>
<tr class="memdesc:a38ef4e0bb23c0db89297bbe3f1a7f019"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of possible configurations for this device. <br/></td></tr>
<tr class="memitem:a5ce2cb2d3b4e92fe28f35eb1d5e38b77"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ce2cb2d3b4e92fe28f35eb1d5e38b77"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_configuration.html">Configuration</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a5ce2cb2d3b4e92fe28f35eb1d5e38b77">getConfiguration</a> (uint8_t ConfigValue)</td></tr>
<tr class="memdesc:a5ce2cb2d3b4e92fe28f35eb1d5e38b77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the requested configuration. <br/></td></tr>
<tr class="memitem:a586bcbb3872d1f079fae9f1b6ae96ef4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a586bcbb3872d1f079fae9f1b6ae96ef4"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_configuration.html">Configuration</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a586bcbb3872d1f079fae9f1b6ae96ef4">getActiveConfiguration</a> ()</td></tr>
<tr class="memdesc:a586bcbb3872d1f079fae9f1b6ae96ef4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the activeConfiguration. <br/></td></tr>
<tr class="memitem:a0d24eae437e17a93ccdfa2a249650fc5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d24eae437e17a93ccdfa2a249650fc5"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_endpoint.html">Endpoint</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a0d24eae437e17a93ccdfa2a249650fc5">getControlEndpoint</a> ()</td></tr>
<tr class="memdesc:a0d24eae437e17a93ccdfa2a249650fc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the control endpoint (<a class="el" href="class_lib_u_s_b_1_1_endpoint.html" title="USB endpoint class.">Endpoint</a> 0) <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a2b7f495eb8c2693602f212c2c2773f15"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#a2b7f495eb8c2693602f212c2c2773f15">TransferEventNotification</a> (std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_transfer.html">Transfer</a> &gt; pCompletedTransfer)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:aed9f2bd8ff81bd3986d935f9aa242d1b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed9f2bd8ff81bd3986d935f9aa242d1b"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device.html#aed9f2bd8ff81bd3986d935f9aa242d1b">TransferImpl</a></td></tr>
<tr class="memdesc:aed9f2bd8ff81bd3986d935f9aa242d1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transfers need access to the transfer event notification method of their target device. <br/></td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Libusb device interface. </p>
</div><h2>Member Function Documentation</h2>
<a class="anchor" id="a2b7f495eb8c2693602f212c2c2773f15"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void LibUSB::Device::TransferEventNotification </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_transfer.html">Transfer</a> &gt;&#160;</td>
          <td class="paramname"><em>pCompletedTransfer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Notification of a completed transfer </p>
<dl class="section warning"><dt>Warning</dt><dd>This function can be called from other threads when using asynchronous transfers! </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>headers/<a class="el" href="device_8h_source.html">device.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>LibUSB</b></li><li class="navelem"><a class="el" href="class_lib_u_s_b_1_1_device.html">Device</a></li>
    <li class="footer">Generated on Sat Sep 8 2012 17:02:56 for Libusb++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.2 </li>
  </ul>
</div>
</body>
</html>
